package com.example.androidtest.demo3

class NettyDemoMain {
}

fun main() {
    NettyClient.getInstance().setHost("192.168.1.5",8887)
    NettyClient.getInstance().connect {
        println("已连接")
    }
    while (true){
        NettyClient.getInstance().send("dfg"+Math.random()*10)
        Thread.sleep(5000)
    }
}